package ms.utils;

import ms.spm.IAppContext;
import ms.spm.services.ExceptionHandler;

public class ExceptionUtil {

	public static void handle(Exception e, IAppContext context) {
		if (context != null) {
			ExceptionHandler h = context.getService(ExceptionHandler.class);
			if (h != null) {
				h.handle(e);
				return;
			}
		}
		e.printStackTrace();
	}
}
